<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>体重指标</title>
</head>
<body>
    <!-- 开发一款软件，根据公式（身高 -108）*2 = 体重，可以有10斤左右的浮动。来观察测试者体重是否合适
	var height =	
	var weight = -->
</body>
<script>
    (function () {
        let height = 188;
        let weight = 165;
        if (weight <= (height - 108) * 2 + 10 && weight > (height - 108) * 2 - 10) console.log('患者体重正常');
        else console.log('患者体重不正常');
            
        





    })();
</script>
</html>